package test.sp;

import java.io.Serializable;

//1:封装
public class Vip implements Serializable {
    //会员属性有会员号，姓名，手机号，积分
    private String name;
    private String card;
    private int score;
    private String phone;

     public Vip() {
     }

     public Vip(String name, String card, int score, String phone) {
         this.name = name;
         this.card = card;
         this.score = score;
         this.phone = phone;
     }

     public String getName() {
         return name;
     }

     public void setName(String name) {
         this.name = name;
     }

     public String getCard() {
         return card;
     }

     public void setCard(String card) {
         this.card = card;
     }

     public int getScore() {
         return score;
     }

     public void setScore(int score) {
         this.score = score;
     }

     public String getPhone() {
         return phone;
     }

     public void setPhone(String phone) {
         this.phone = phone;
     }

     public void show() {
         System.out.println("*******************");
        System.out.println("会员姓名：" + name);
        System.out.println("会员卡号：" + card);
        System.out.println("会员积分：" + score);
        System.out.println("会员电话：" + phone);
         System.out.println("*******************");
    }

}